import yaml

with open('config.yml', 'r', encoding='utf-8') as file:
    config = yaml.load(file, Loader=yaml.FullLoader)

SECRET_KEY = config['app']['secret_key']
LOG_LEVEL = config['app']['log_level']

REDIS_HOST = config['redis']['host']
REDIS_PORT = config['redis']['port']
REDIS_PASSWORD = config['redis']['password']
REDIS_DB = config['redis']['db']
REDIS_USER_PREFIX = config['redis']['user']['prefix']
REDIS_USER_EXPIRE = config['redis']['user']['expire']
REDIS_GAME_PREFIX = config['redis']['game']['prefix']
REDIS_GAME_EXPIRE = config['redis']['game']['expire']
MYSQL_HOST = config['mysql']['host']
MYSQL_PORT = config['mysql']['port']
MYSQL_USER = config['mysql']['user']
MYSQL_PASSWORD = config['mysql']['password']
MYSQL_DATABASE = config['mysql']['database']
MONGODB_HOST = config['mongo']['host']
MONGODB_PORT = config['mongo']['port']
MONGODB_USER = config['mongo']['user']
MONGODB_PASSWORD = config['mongo']['password']
MONGODB_DATABASE = config['mongo']['database']
COS_SECRET_ID = config['tencent']['secret_id']
COS_SECRET_KEY = config['tencent']['secret_key']
COS_BUCKET = config['tencent']['bucket']
